/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package travelmatching;



/**
 *
 * @author dk
 */
public class Access {

    Boolean oldUser;

    boolean checkPassword(String userId, String pass){
        boolean isTrue = false;
        Interface out = new Interface();
        String [] user = out.read(userId);
        for (String i : user){
            if (i.equals(pass)){
                return isTrue = true;
            }
        }
        return isTrue;
    }
}
